package di

import (
	"fmt"
	"io"
	"net/http"
)

func Greet(writer io.Writer, name string) {
	fmt.Fprintf(writer, "hello, %s", name)
}

func MyGreetterHandler(w http.ResponseWriter, r http.Request) {
	Greet(w, "world")
}
